/**
 * 
 */
package co.fitstart.entity.coupon;

import com.demo2do.core.utils.Alias;

/**
 * @author Leo
 *
 */
@Alias("expireType")
public enum ExpireType {

    FIXED_DATE("固定时间过期", "fixed_date"),
    
    FIXED_DAYS("认领后固定天数", "fixed_days");
    
    private String description;
    
    private String alias;
    
    ExpireType(String description, String alias) {
        this.description = description;
        this.alias = alias;
        
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * 
     * @return
     */
    public boolean isFixedDate() {
        return this.equals(FIXED_DATE);
    }
    
}
